package org.despair2D.ui.puppet 
{
	import flash.display.DisplayObject;
	import flash.display.Graphics;
	import flash.display.Shape;
	import org.despair2D.renderer.IView;
	import org.despair2D.ui.core.ComponentProxy;
	import org.despair2D.ui.puppet.supportClasses.PuppetComp;
	
	import org.despair2D.core.ns_despair;
	use namespace ns_despair;
	
	/**
	 * @usage
	 * 
	 * @property
	 * 		1. ◇graphics
	 */
public class ShapePuppet extends DisplayObjectContainerPuppet
{
	
	public function ShapePuppet( cacheAsBitmap:Boolean = true ) 
	{
		super(cacheAsBitmap);
		m_shape = new Shape
		this.addChild(m_shape)
	}
	
	
	final public function get graphics() : Graphics { return m_shape.graphics }
	
	
	override ns_despair function dispose() : void
	{
		m_shape.graphics.clear()
		m_shape = null
		super.dispose();
	}
	
	
	ns_despair var m_shape:Shape
}
}